package com.tbit.main.dao.log;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.main.pojo.RecoveryLog;
import com.tbit.main.pojo.VO.RecoveryLogStat;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 回收记录
 * @Date: 创建于 15:21 2023/2/9
 */
public interface RecoveryLogMapper extends BaseMapper<RecoveryLog> {

    /**
     * 查询指定时间段内回收记录
     *
     * @param map
     * @return
     */
    List<RecoveryLogStat> getByAccountIdTime(Map<String, Object> map);

    List<RecoveryLog> getUserCode(Map<String, Object> map);

    /**
     * 根据车辆id批量清除回收车辆状态
     *
     * @param machineIdList 车辆id集合
     */
    void updateBatchByMachineList(@Param("machineIdList") List<Integer> machineIdList, @Param("state") Integer state,
                                  @Param("remark") String remark);
}
